package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.weixing.mall.provider.model.domain.OrderOperation;
import com.weixing.mall.provider.model.query.FrontShipperOrderSearchQuery;
import com.weixing.mall.provider.model.vo.OrderOperationVo;
import com.weixing.mall.provider.model.vo.ShipperOrderDetailsVo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 订单模块-订单操作记录表 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-20
 */
public interface OrderOperationMapper extends BaseMapper<OrderOperation> {
    List<OrderOperationVo> selectList(Long orderId);

    OrderOperation selectByOrderIdOperationTime(Long id);

    void customerChgOrder(@Param("customerRemark")String customerRemark, @Param("operatorId")Long operatorId, @Param("orderId")Long orderId);

    List<OrderOperation> selectByOrder(Long orderId);

    /**
     * 发货员根据搜索条件返回查询结果
     * @param entity
     * @return
     */
    List<ShipperOrderDetailsVo>  selectShipperOrder(FrontShipperOrderSearchQuery entity);

    /**
     * 根据id返回单个查询结果
     * @param entity
     * @return
     */
    ShipperOrderDetailsVo  shipperOrderDetailsVo(FrontShipperOrderSearchQuery entity);
}
